import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './components/home/home.component';
import { LogsAndBugsComponent } from './components/logs-and-bugs/logs-and-bugs.component';
import { ResumeComponent } from './components/resume/resume.component';
import { MonumentComponent } from './components/monument/monument.component';
import { MessageboardComponent } from './components/messageboard/messageboard.component';
import { AdminmanagerComponent } from './components/adminmanager/adminmanager.component';
import { ProfilesComponent } from './components/adminmanager/joinus/profiles/profiles.component';
import { RegisterComponent } from './components/adminmanager/usermanager/register/register.component';
import { AboutusComponent } from './components/aboutus/aboutus.component';
import { NotebookComponent } from './components/tutorial-editable-template/notebook/notebook.component';
import { JoinusComponent } from './components/joinus/joinus.component';
import { Game2020Component } from './components/game2020/game2020.component';
import { Game2019Component } from './components/game2019/game2019.component'
import { GatewayComponent } from './components/gateway/gateway.component';
import { TutorialTemplateComponent } from './components/tutorial-template/tutorial-template.component';
import { TutorialEditableTemplateComponent } from './components/tutorial-editable-template/tutorial-editable-template.component';
import { BlogComponent } from './components/blog/blog.component';


const routes: Routes = [
  {path:"",component:GatewayComponent},
  {path:"blog",component:BlogComponent},
  {path:"tutorial-template",component:TutorialTemplateComponent},
  {path:"tutorial-editable-template",component:TutorialEditableTemplateComponent},
  {path:"home",component:HomeComponent},
  {path:"notebook",component:NotebookComponent},
  {path:"joinus", component:JoinusComponent},
  {path:"aboutus", component:AboutusComponent},
  {path:"logs&bugs", component:LogsAndBugsComponent},
  {path:"monument", component:MonumentComponent},
  {path:"resume", component:ResumeComponent},
  {path:"game2020", component:Game2020Component},
  {path:"game2019", component:Game2019Component},
  {path:"messageboard", component:MessageboardComponent},
  {path:"adminmanager", component:AdminmanagerComponent,
   children:[
    {path:"profiles",component:ProfilesComponent},
    {path:"register",component:RegisterComponent}
   ]
  },
  {path:"**",redirectTo:""}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
